<template>
  <div class="news-list">
      <group>
        <cell-box v-for="(item, index) in data" :key="index" :link="{name:'newDetail', params:{id: item.id} }">
					<span class="desc">{{item.title}}</span>
					<div class="avatar" v-if="!item.images===false">
            <img class="ximg-demo" v-lazy="item.images[0]" alt="">
            <i class="icon iconfont icon-duotu multipic" v-if="!item.multipic===false">多图</i>
          </div>
        </cell-box>
      </group>
  </div>
</template>
<script>
import axios from "axios";
import { CellBox, Group } from "vux";
export default {
  props: {
    data: {
      type: Array,
      default: null
    }
  },
  data() {
    return {};
  },
  created() {
  },
  mounted() {},
  methods: {},
  components: {
    CellBox,
    Group
  }
};
</script>

<style lang="less" scoped>
.news-list {
  .weui-cell_access.vux-cell-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 60px;
  }
  .weui-cell:before {
    left: 0 !important;
    margin-left: 15px;
    margin-right: 15px;
  }
  .weui-cell_access.vux-cell-box:after {
    display: none;
  }
  .avatar {
    position: relative;
    flex: 30%;
    font-size: 0;
    text-align: right;
    .ximg-demo {
      width: 75px;
      height: 60px;
    }
    .multipic {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 40px;
      height: 16px;
      line-height: 16px;
      font-size: 12px;
      color: #ffffff;
      background-color: #000;
      opacity: .7;
      text-align: center;
    }
  }
  .desc {
    flex: 70%;
    font-size: 16px;
  }
}
</style>
